package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.RentHousePageRequest;
import com.bykj.property.model.RentHouse;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

/**
* <p>
    * 出租屋信息表 Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-07-30
*/
public interface RentHouseMapper extends BaseMapper<RentHouse> {

    @Select("select  * from rent_house ")
                @Results({ @Result(property = "pmVillage",column = "pm_village_id",one = @One(select = "com.bykj.property.mapper.PmVillageMapper.selectById"))
                ,@Result(property = "dictionary",column = "dictionary_id",one = @One(select = "com.bykj.property.mapper.DictionaryMapper.selectById"))
    })
    Page<RentHouse> queryPage(RentHousePageRequest pageRequest);

}